#include "mainwindow.h"
#include <QApplication>
#include <QDebug>
#include "singleton.h"
#include "student.h"
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    qDebug() << Singleton<Student>::getInstance().getId();
    qDebug() << Singleton<Student>::getInstance().getName();
    qDebug() << Singleton<Student>::getInstance().getSex();
    qDebug() << Singleton<Student>::getInstance().getAddr();
    qDebug() << Singleton<Student>::getInstance().getEmail();
    w.show();

    return a.exec();
}
